section .text
	global strlen

strlen:
	xor  rax, rax
	jmp .each           ; while test at bottom of loop

.count:
	inc  rax            ; count another character
	inc  rdi
.each:
	cmp  byte [rdi], 0
	jne .count

.done:
	ret                 ; ...and we're done.